/*
day428 
2020.10.29 
*/

#include<iostream>
#include<vector>
#include<cstring>
using namespace std;

class Solution {
public:
    int maxDepth(string s) {
		int res=0;
		int count=0;
		for(int i=0;i<s.size();++i)
		{
			if(s[i]=='(')
			{
				count++;
				res=max(res,count);
			}
			else if(s[i]==')')
			{
				count--;
			}
		}
		
		return res;
    }
};


int main()
{
	return 0;
 } 
